<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateReportsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('reports', function (Blueprint $table) {
            $table->increments('id');
            $table->string('city', 50)->comment('城市码');
            $table->datetime('report_time')->comment('报道时间');
            $table->string('title', 50)->commnet('标题');
            $table->string('remark', 100)->comment('简介');
            $table->string('desc', 6000)->comment('报道详情');
            $table->integer('view')->comment('浏览量')->default(0);
            $table->integer('status')->comment('状态')->default(10);

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('reports');
    }
}
